<?php
namespace App\Repositories;

use App\Models\Article;
use App\Exceptions\InvalidException;
class ArticleRepo extends BaseRepo
{
   public function __construct()
   {
    parent::$model = new Article();
   }

   //获取分页列表
   public function getPageList($where = [],$pageSize = 10)
   {
    return Article::where(function($query)use($where) {

    })->paginate($pageSize);
   }
   
}